neighbor update-source

This command specifies the IPv4 source address to use for the BGP session to this neighbor.

Syntax

neighbor {<neighbor tag>|a.b.c.d|X:X::X:X} update-source <interface> <interface ID> 
neighbor peer {<neighbor tag>|a.b.c.d|X:X::X:X} update-source

Command

Description

a.b.c.d|X:X::X:X

Defines the IP address of the neighbor (IPv4 or IPv6).

neighbor tag

Defines the neighbor tag.

 

Interface Type (ifname)

Interface ID

gigabitethernet

GigabitEthernet interface slot and port (VLAN ID is optional)

[SLOT/PORT.VLANID]

cellular

Cellular interface ID

0/0

gre

Tunnel GRE ID

[1-255] 

ipip

Tunnel IPIP ID

[1-255]

l2tp

L2TP ID

[0-99]

pppoe

PPPoE interface ID

[1-3]

pptp

PPTP ID

[0-99]

vlan

Vlan ID

[1-3999]

loopback

Loopback ID

[1-5]

bvi

Bridge interface

[1-255]

Default

NA

Command Mode

Privileged User

Example

This example specifies the IPv4 source address to use.

(config-data)# router bgp 1
(conf-router)# neighbor 192.168.0.1 update-source vlan2